﻿@model Ymca.Web.Models.Account.ManageViewModel

<div class="page-hedaer">
    <h3>Manage</h3>
</div>

@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <span class="field-validation-error text-error">@ViewBag.ErrorMessage</span>
    
    <div class="control-group">
		<label class="control-label" for="OldPassword">Old Password</label>
		<div class="controls">
			@Html.PasswordFor(model => model.OldPassword)
			@Html.ValidationMessageFor(model => model.OldPassword, null, new { @class = "text-error" })
		</div>
	</div>
    
    <div class="control-group">
		<label class="control-label" for="Password">Password</label>
		<div class="controls">
			@Html.PasswordFor(model => model.Password)
			@Html.ValidationMessageFor(model => model.Password, null, new { @class = "text-error" })
		</div>
	</div>
    
    <div class="control-group">
		<label class="control-label" for="ConfirmPassword">Confirm Password</label>
		<div class="controls">
			@Html.PasswordFor(model => model.ConfirmPassword)
			@Html.ValidationMessageFor(model => model.ConfirmPassword, null, new { @class = "text-error" })
		</div>
	</div>

    <p>
        <input type="submit" class="btn btn-primary" value="Change" />
    </p>
}

<div>
    @Html.ActionLink("Back", "Index")
</div>
